
package com.cmc.dao;

import java.util.List;

import com.cmc.dao.Dao;
import com.cmc.model.Department;

public interface DepartmentDao extends Dao {

    /**
     * Retrieves all of the departments
     */
    public List getDepartments(Department department);

    /**
     * Gets department's information based on primary key. An
     * ObjectRetrievalFailureException Runtime Exception is thrown if 
     * nothing is found.
     * 
     * @param id the department's id
     * @return department populated department object
     */
    public Department getDepartment(final Long id);

    /**
     * Saves a department's information
     * @param department the object to be saved
     */    
    public void saveDepartment(Department department);

    /**
     * Removes a department from the database by id
     * @param id the department's id
     */
    public void removeDepartment(final Long id);
}

